<?php /* Smarty version 2.6.18, created on 2017-08-29 16:19:49
         compiled from autofly.html */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'header2.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<style type="text/css">
.data_table .flag{width:70px;}
.data_table td{height:30px;}
.pantb td{text-align:center}
input.s1{padding:1.5px;}
</style>
</head>
<body id="topbody">
<script id=myjs language="javascript">
var js=1;var sss='autofly';
</script>

<div class="main">
	<div class="top_info">
		<span class="title">自动补货设定</span><span class="right"></span>
	</div>
	<form style="margin:0;padding:0" method="post">
		<div class="contents param_panel">
			<div class="game_class">
				<ul>
<?php if ($this->_tpl_vars['config']['fasttype'] == 1): ?>
<li><span>快开彩</span>
<?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['game']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
    <?php if ($this->_tpl_vars['game'][$this->_sections['i']['index']]['fast'] == 1): ?><a href="javascript:void(0)" class="g<?php echo $this->_tpl_vars['game'][$this->_sections['i']['index']]['gid']; ?>
"  gid='<?php echo $this->_tpl_vars['game'][$this->_sections['i']['index']]['gid']; ?>
'><?php echo $this->_tpl_vars['game'][$this->_sections['i']['index']]['gname']; ?>
</a><?php endif; ?>
 <?php endfor; endif; ?>
</li>
<?php endif; ?>
<?php if ($this->_tpl_vars['config']['slowtype'] == 1): ?>
<li><span>低频彩</span>
<?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['game']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
    <?php if ($this->_tpl_vars['game'][$this->_sections['i']['index']]['fast'] == 0): ?><a href="javascript:void(0)" class="g<?php echo $this->_tpl_vars['game'][$this->_sections['i']['index']]['gid']; ?>
" gid='<?php echo $this->_tpl_vars['game'][$this->_sections['i']['index']]['gid']; ?>
'><?php echo $this->_tpl_vars['game'][$this->_sections['i']['index']]['gname']; ?>
</a><?php endif; ?>
 <?php endfor; endif; ?>
</li>
<?php endif; ?>
				</ul>
			</div>
 
			<table class="layout pantb">
			<tbody>
			<tr>
				<td class="panel">
					<table class="list data_table at_0">
					<thead>
					<tr>
						<th>
							<input type="checkbox" class="all">全选
						</th>
						<th>
							种类
						</th>
						<th>
							注额
						</th>
						<th>
							状态
						</th>
					</tr>
					</thead>
					<tbody>
                    
   <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['fly']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['step'] = ((int)1) == 0 ? 1 : (int)1;
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = min(ceil(($this->_sections['i']['step'] > 0 ? $this->_sections['i']['loop'] - $this->_sections['i']['start'] : $this->_sections['i']['start']+1)/abs($this->_sections['i']['step'])), $this->_sections['i']['max']);
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
     <?php if ($this->_sections['i']['index'] <= $this->_tpl_vars['nums']): ?>
   <TR class='nr' f='<?php echo $this->_tpl_vars['fly'][$this->_sections['i']['index']]['ftype']; ?>
' ab='<?php echo $this->_tpl_vars['fly'][$this->_sections['i']['index']]['ab']; ?>
'>
    <td><input type="checkbox"  class="pantbc"  /><input type="button" class="s1 pantb" value="同步选中" /></td>
    <th><?php echo $this->_tpl_vars['fly'][$this->_sections['i']['index']]['name']; ?>
</th>
    <td> 
    <?php if ($this->_tpl_vars['fly'][$this->_sections['i']['index']]['ab'] == 1): ?>  
      总额(含AB盘):
     <input type="text" value='<?php echo $this->_tpl_vars['fly'][$this->_sections['i']['index']]['A']; ?>
'  class="flag je a" />
     其中B盘：
     <input type="text" value='<?php echo $this->_tpl_vars['fly'][$this->_sections['i']['index']]['B']; ?>
' class="flag je b" />
     <?php else: ?>
     <input type="text" value='<?php echo $this->_tpl_vars['fly'][$this->_sections['i']['index']]['A']; ?>
'  class="flag je a" />
     <?php endif; ?>
    </td>
    <td><input type="checkbox" class='ifok' value="1" <?php if ($this->_tpl_vars['fly'][$this->_sections['i']['index']]['ifok'] == 1): ?>checked<?php endif; ?>/></td>
   </TR>
   <?php endif; ?>
   <?php endfor; endif; ?>
   					</tbody>
					</table>
				</td>
				<td class="panel">
					<table class="list data_table at_0">
					<thead>
					<tr>
						<th>
							<input type="checkbox" class="all">全选
						</th>
						<th>
							种类
						</th>
						<th>
							注额
						</th>
						<th>
							状态
						</th>
					</tr>
					</thead>
					<tbody>
   <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['fly']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['step'] = ((int)1) == 0 ? 1 : (int)1;
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = min(ceil(($this->_sections['i']['step'] > 0 ? $this->_sections['i']['loop'] - $this->_sections['i']['start'] : $this->_sections['i']['start']+1)/abs($this->_sections['i']['step'])), $this->_sections['i']['max']);
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
     <?php if ($this->_sections['i']['index'] > $this->_tpl_vars['nums']): ?>
   <TR class='nr' f='<?php echo $this->_tpl_vars['fly'][$this->_sections['i']['index']]['ftype']; ?>
' ab='<?php echo $this->_tpl_vars['fly'][$this->_sections['i']['index']]['ab']; ?>
'>
    <td><input type="checkbox"  class="pantbc"  /><input type="button" class="s1 pantb" value="同步选中" /></td>
    <th><?php echo $this->_tpl_vars['fly'][$this->_sections['i']['index']]['name']; ?>
</th>
    <td> 
    <?php if ($this->_tpl_vars['fly'][$this->_sections['i']['index']]['ab'] == 1): ?>  
      总额(含AB盘):
     <input type="text" value='<?php echo $this->_tpl_vars['fly'][$this->_sections['i']['index']]['A']; ?>
'  class="flag je a" />
     其中B盘：
     <input type="text" value='<?php echo $this->_tpl_vars['fly'][$this->_sections['i']['index']]['B']; ?>
' class="flag je b" />
     <?php else: ?>
     <input type="text" value='<?php echo $this->_tpl_vars['fly'][$this->_sections['i']['index']]['A']; ?>
'  class="flag je a" />
     <?php endif; ?>
    </td>
    <td><input type="checkbox" class='ifok' value="1" <?php if ($this->_tpl_vars['fly'][$this->_sections['i']['index']]['ifok'] == 1): ?>checked<?php endif; ?>/></td>
   </TR>
   <?php endif; ?>
   <?php endfor; endif; ?>
   					</tbody>
					</table>
				</td>
			</tr>
			</tbody>
			</table>
		</div>
        
		<div id="quickSetting"><BR />
			补货盘口:
			<select class="defaultpan">
				<?php $_from = $this->_tpl_vars['pan']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?>
                  <option value="<?php echo $this->_tpl_vars['i']; ?>
" <?php if ($this->_tpl_vars['i'] == $this->_tpl_vars['defaultpan']): ?>selected<?php endif; ?>><?php echo $this->_tpl_vars['i']; ?>
盘</option>
                <?php endforeach; endif; unset($_from); ?>
			</select>
			<input type="button" gid="172" class="yiwotongbu" value="以我同步赛车系列"><input name="xtype" value="setautofly" type="hidden">
		</div>
        
		<div class="control">
			<input type="button" value="保存" class="button send"><input type="button" value="取消" class="button" style="display:none">
		</div>
        
   <?php if ($this->_tpl_vars['fenlei'] == 100): ?>
   <table class="data_table data_list">
   <tr>
    <Td style="text-align:left;padding:10px;line-height:150%;"> 说明：<BR />
     1、（特码B）和（正特B）在总收单金额大于(总额)的情况下才会补货，B盘优先。如总额设[1000元],B盘设[300元]，收单金额A:300元、收单金额B：500，不会自动补货。若收单金额A:300元、收单金额B:800元,向B盘补货100。若收单金额A:800元、收单金额B:500元,优先向B盘走200，然后向A盘补货100。<BR />
     2、只有允许(内补)，才会自动补货。<BR />
     3、只有当(总开关)和(分类开关都)开启时， 才会发生自动补货！<BR />
     4、两面玩法以两边金额的差额来计算，连码、过关、生肖连、尾数连、特肖连最大占成为(单组金额)，其余为(单号金额)！<BR />
     5、系统将对超过〈最高占成〉金额1元以上自动补货，不足1元不会自动补货.<BR />
     6、随时可以更改(最高占成)金额 及 手动补货，请仔细设置，如有不明应咨询上级！ </d>
   </tr>
  </table>
  <?php endif; ?>
	</form>
</div>


</div>
<div id='test'></div>
<script language="javascript">
var gid=<?php echo $this->_tpl_vars['gid']; ?>
;
</script>
</body>
</html>